package com.ushine.web.communication.websocket;

/**
 * @Author: yls
 * @Date: 2021/1/21 14:37
 * @Description: websocket 常量类
 * @Version 1.0
 */
public class WsContant {
    /**
     * 链接地址
     */
    public static final String WEBSOCKET_PATH = "/ws/endpointWisely";

    /**
     *全局前缀
     */
    public static final String WEBSOCKET_PATH_PREFIX = "/ws-push";

    /**
     * 消息代理路径
     */
    public static final String WEBSOCKET_BROADCAST_PATH = "/topic";


    /**
     * 服务端生产地址,客户端订阅此地址以接收服务端生产的消息
     */
    public static final String PRODUCER_PATH = "/topic/getResponse";

    /**
     * 点对点消息推送地址前缀
     */
    public static final String P2P_PUSH_BASE_PATH = "/user";

    /**
     * 点对点消息推送地址后缀,最后的地址为/user/用户识别码/msg
     */
    public static final String P2P_PUSH_PATH = "/msg";

}
